ProfilePress\Core\Membership\Models\Subscription\SubscriptionEntity C

Total Complexity 109
Dependencies 16
Dependents 7
Total lines 710
Lines of code 339
Logical lines of code 192
Comment lines 144
Methods 52
Properties 18

Methods 52

Method Rating Maintainability Complexity Lines of code
renew()
A
45 10 43
is_expired()
S
55 7 17
__construct()
S
60 7 12
is_active()
S
57 5 17
cancel()
S
59 5 14
expire()
S
62 5 11
maybe_complete_subscription()
S
67 4 8
enable_subscription_trial()
S
61 3 12
activate_subscription()
S
61 3 12
has_cancellation_requested()
S
73 3 4
complete()
S
68 3 7
get_subscription_terms()
S
61 2 13
update_status()
S
62 2 11
can_cancel()
S
75 2 4
get_recurring_tax_rate()
S
79 2 3
get_formatted_expiration_date()
S
68 2 7
set_status()
S
70 2 6
set_trial_period()
S
70 2 6
save()
S
64 2 10
get_recurring_tax()
S
79 2 3
get_initial_tax()
S
79 2 3
has_trial()
S
79 2 3
is_lifetime()
S
78 2 3
get_initial_tax_rate()
S
79 2 3
get_id()
S
80 1 3
is_cancelled()
S
80 1 3
is_completed()
S
80 1 3
is_recurring()
S
80 1 3
get_plan_id()
S
80 1 3
delete_cancellation_requested()
S
80 1 3
add_cancellation_requested()
S
75 1 4
add_renewal_order()
S
68 1 8
get_parent_order_id()
S
80 1 3
get_times_billed()
S
67 1 8
get_plan()
S
80 1 3
update_profile_id()
S
79 1 3
remove_plan_role_from_customer()
S
72 1 5
get_customer_id()
S
80 1 3
add_plan_role_to_customer()
S
72 1 5
get_all_orders()
S
71 1 6
get_customer()
S
80 1 3
add_note()
S
71 1 5
get_notes()
S
78 1 3
get_initial_amount()
S
81 1 3
get_payment_method()
S
80 1 3
get_status_label()
S
80 1 3
exists()
S
80 1 3
get_recurring_amount()
S
81 1 3
get_profile_id()
S
78 1 3
get_completed_order_count()
S
71 1 6
get_total_payments()
S
80 1 3
get_status()
S
78 1 3